# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-dogpile.cache
_pkgname=dogpile.cache
pkgver=1.1.7
pkgrel=0
pkgdesc="Caching front-end based on the Dogpile lock"
url="https://github.com/sqlalchemy/dogpile.cache"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-decorator"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pbr py3-mako py3-redis py3-stevedore"
source="https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2c7e8dfc252241ad075a073ad1c1688865943f6e33a317618a47e95132b65ac891b00d5aa0bf3bcced005a6157b50754b086192470b3ce867461bf183947d603  dogpile.cache-1.1.7.tar.gz
"
